package com.example.competionmanagebackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.competionmanagebackend.entity.Competitions;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author Rui
 * @description 针对表【competitions】的数据库操作Service
 * @createDate 2025-02-20 00:49:23
 */
public interface CompetitionsService extends IService<Competitions> {
    Page<Competitions> getCompetitionsPage(int currentPage, int pageSize, Competitions query);

    List<Competitions> getAllCompetitions();

    void insertCompetition(Competitions competition);
    void updateCompetition(Competitions competition);
    void deleteCompetition(Integer id);
}